package com.villaday.idf.adapter2;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.base.OnAdapterCallbackListener;
import com.villaday.idf.model.RefreshtokenEntity;
import com.villaday.idf.model2.Business_districts;
import com.villaday.idf.model2.Find_House_minsu_listEntity;
import com.villaday.idf.util.SharedPreferencesUtil;
import com.zhy.view.flowlayout.FlowLayout;
import com.zhy.view.flowlayout.TagAdapter;
import com.zhy.view.flowlayout.TagFlowLayout;

import java.util.ArrayList;
import java.util.List;

/**
 * 民宿
 */

public class FindMinSulChooseAddr1Adapter<T> extends AbsRecyclerViewAdapter<Business_districts.BodyEntity> {
    private OnAdapterCallbackListener onAdapterCallbackListener;
    private View.OnClickListener onClickListener;
    private final String roleType;


    public FindMinSulChooseAddr1Adapter(Context context/*, OnAdapterCallbackListener onAdapterCallbackListener, View.OnClickListener onClickListener*/) {
        super(context, R.layout.item_find_minsu_addr1, R.layout.item_page_loading,
                R.layout.item_page_bottom);
        this.onAdapterCallbackListener = onAdapterCallbackListener;
        this.onClickListener = onClickListener;
        RefreshtokenEntity.BodyBean roleInfo =
                SharedPreferencesUtil.getRoleInfo(context);
        roleType = roleInfo.getMember().getType();

    }


    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, Business_districts.BodyEntity d, int position) {

        holder.bindTextView(R.id.tv_name, d.getName())
                .setViewSelected(R.id.tv_name, d.isSelect());


    }
}
